<!--
var codeTacDisclaimer = ''
+ '<style type="text/css">'
+ '<!--'
// Netscape 4, IE 4.x-5.0/Win and other lesser browsers will use this
+ 'div.fixedTacDisclaimer { position: absolute; float: none; display: block; margin: 0px; padding: 0px; border: 0; line-height: normal; width: auto; height: auto; }'
+ 'div.frontTacDisclaimer { float: none; display: block; margin: 0px; padding: 0px; border: 0; line-height: normal; }'

// used by Opera 5+, Netscape6+/Mozilla, Konqueror, Safari, OmniWeb 4.5+, iCab, ICEbrowser
+ 'html > body div.fixedTacDisclaimer { position: fixed; }'
+ 'html > body div.backgTacDisclaimer { width: 100%; height: 100%; left: 0px; top: 0px; }'
+ 'html > body div.frontTacDisclaimer { left: 50%; top: 50%;  }'
+ '-->'
+ '</style>'
+ '<!--[if IE]>'
+ '<style type="text/css">'
+ '#blockTacDisclaimer1 { filter: alpha(opacity=90); }'
+ '</style>'
+ '<![endif]-->'
+ '<!--[if gte IE 5.5]>'
+ '<![if lt IE 7]>'
+ '<style type="text/css">'
+ 'div.backgTacDisclaimer {'
// IE5.5+/Win - this is more specific than the IE 5.0 version
+ '	width:  expression(document.body.clientWidth  + "px");'
+ '	height: expression(document.body.clientHeight + "px");'
+ '	left: expression( ( leftLayer = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) + "px" );'
+ '	top:  expression( ( topLayer  = document.documentElement.scrollTop  ? document.documentElement.scrollTop  : document.body.scrollTop  ) + "px" );'
+ '}'
+ 'div.frontTacDisclaimer {'
// IE5.5+/Win - this is more specific than the IE 5.0 version
+ '	left: 50%;'
+ '	top:  expression( 300 + ( topLayer  = document.documentElement.scrollTop  ? document.documentElement.scrollTop  : document.body.scrollTop )  + "px" );'
+ '}'
+ '</style>'
+ '<![endif]>'
+ '<![endif]-->'
+ '<div id="blockTacDisclaimer1" class="fixedTacDisclaimer backgTacDisclaimer" style="display: none; z-index: 5001; background: #000000; -moz-opacity: 0.9; opacity: 0.9;"></div>'
+ '<div id="blockTacDisclaimer2" class="fixedTacDisclaimer frontTacDisclaimer" style="display: none; z-index: 5002; width: 600px; height: 400px; padding: 6px; margin-left: -300px; margin-top: -200px; background: url(\'http://media.the-adult-company.com/market2/market/disclaimer/skn1/00.gif\') no-repeat;">'
+ '	<div style="position: relative; width: 600px; height: 400px; background: url(\'http://media.the-adult-company.com/market2/market/disclaimer/skn1/1/01.jpg\');">'
+ '		<p style="position: absolute; left: 15px; top: 10px; margin: 0; text-transform: uppercase;"><span id="txt_1" style="font: bold 20px Arial, Helvetica, sans-serif; color: #333333;"> </span></p>'
+ '		<p style="position: absolute; left: 5px; top: 46px; margin: 0;"><img src="http://media.the-adult-company.com/market2/market/disclaimer/skn1/photo_h6.jpg" width="275" height="348" border="0" alt=""></p>'
+ '		<p style="position: absolute; left: 296px; top: 48px; margin: 0;"><span id="txt_2" style="font: bold 16px Arial, Helvetica, sans-serif; color: #FF0000;">WARNING</span><br>'
+ '			<span id="txt_3" style="font: bold 14px Arial, Helvetica, sans-serif; color: #000000;">Service reserved strictly<br>for the use of adults.</span></p>'
+ '		<p style="position: absolute; left: 296px; top: 124px; margin: 0;"><textarea id="txt_4" readonly="readonly" wrap="virtual" rows="20" cols="50" style="width: 286px; height: 110px; background: none; border: none; font: normal 12px Arial, Helvetica, sans-serif; color: #333333;">This website is intended for an adult public and complies with all French regulations. It contains pornographic texts, links and pictures which can be shocking for certain persons.\n'
+ '\n'
+ 'I hereby certify that:\n'
+ ' - I am an adult according to the law in my country.\n'
+ ' - The laws of my state or my country authorize me to visit this site and that this site has the right to send me such data.\n'
+ ' - I have been informed of the pornographic nature of this site.\n'
+ ' - I am not shocked by any type of sexual practice and will not pursue the publisher in any legal action.\n'
+ ' - I am visiting this site for personal reasons and that I am not implicating a private company or public organisation.\n'
+ '\n'
+ 'I, under penalties of perjury solemnly declare and affirm the following :\n'
+ ' - I will not divulge the existence of this site nor will I disseminate the contents to minors\n'
+ ' - I will use all means to prevent access to this adult site by minors.\n'
+ ' - I will assume my responsibility if a minor accesses the site due to negligence on my part: lack of protection on my personal computer, disclosure or loss of any of my passwords.\n'
+ ' - I will assume my responsibility if one or more of my present declarations are inaccurate.\n'
+ '\n'
+ 'All images shown on this site are in accordance with French law on pornography (no image of a minor is present on this site).\n'
+ '\n'
+ 'I have attentively read the paragraphs above and sign electronically my agreement with what precedes by clicking on the ENTER button.</textarea></p>'
+ '		<p style="position: absolute; left: 286px; top: 252px; margin: 0;"><a href="javascript:void(0);" onClick="hideDisclaimer();showpop(); return false;"><img src="http://media.the-adult-company.com/market2/market/disclaimer/skn1/1/03_uk.gif" width="306" height="58" border="0" alt=""></a></p>'
+ '		<p style="position: absolute; left: 286px; top: 315px; margin: 0;"><a href="http://d2.advertserve.com/advertpro/servlet/view/window/url/campaign?cid=251&pid=0&custom1=20616-pc&custom3=&custom4=&custom5=02010&custom6=1&custom7=1&custom8=1&custom9=1&custom10=0"><img src="http://media.the-adult-company.com/market2/market/disclaimer/skn1/1/04_uk.gif" width="306" height="56" border="0" alt=""></a></p>'
+ '	</div>'
+ '</div>';

var scrollToTopTimer;
var disclaim_is_here;
var dureecook;

/* pour le stockage des cookies */
var accepteCookies = (navigator.cookieEnabled) ? true : false;
if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled) {
	document.cookie = "petitTest";
	accepteCookies = (document.cookie.indexOf("petitTest") != -1) ? true : false;
}

function expiration_cook(jours) {
	var expireDate = new Date();
	expireDate.setTime(expireDate.getTime() + jours*24*3600*1000);
	return expireDate.toGMTString();
}

function cre_cook(nom,contenu,jours) {
	if (jours < 1) document.cookie = nom + "=" + escape(contenu) + ";path=/;";
	else document.cookie =  nom + "=" + escape(contenu) + ";path=/;expires=" + expiration_cook(jours) + ";";
}

function lit_cook(nom) {
	var deb,fin;
	deb = document.cookie.indexOf(nom + "=");
	if (deb >= 0) {
		deb += nom.length + 1;
		fin = document.cookie.indexOf(";",deb);
		if (fin < 0) fin = document.cookie.length;
		return unescape(document.cookie.substring(deb,fin));
	}
	return "";
}

function tue_cook(nom) { cre_cook(nom,"",-1); }

function Hide_Show(sens) {
	var oSelects = document.getElementsByTagName('SELECT');
	if (oSelects.length > 0) {
		for (i = 0; i < oSelects.length; i++) {
			oSelects[i].style.visibility = sens;
		}
	}
}

function HideSelect() {
	Hide_Show('hidden');
}

function ShowSelect() {
	Hide_Show('visible');
}

var centerTacDisclaimerInterval;
var strChUserAgent = navigator.userAgent;
var intSplitStart = strChUserAgent.indexOf("(",0);
var intSplitEnd = strChUserAgent.indexOf(")",0);
var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);

function showDisclaimer() {
	// on masque les select
	HideSelect();
	document.getElementById('blockTacDisclaimer1').style.display = "block";
	document.getElementById('blockTacDisclaimer2').style.display = "block";

/*
	if ( document.documentElement.clientHeight == 0 && navigator.appName == "Microsoft Internet Explorer" ) { // NO DOCTYPE = MODE QUIRKS
		centerTacDisclaimerInterval = setInterval("centerTacDisclaimer()", 10);
	}
*/

/*
	if ( document.documentElement.clientHeight == 0 && navigator.appName == "Microsoft Internet Explorer" ) { // NO DOCTYPE = MODE QUIRKS
		centerTacDisclaimerInterval = setInterval("centerTacDisclaimer()", 10);
	} else if(strChMid.indexOf("MSIE 6") != -1) {
		centerTacDisclaimerInterval = setInterval("centerTacDisclaimer()", 10);
	}
*/

	if (strChMid.indexOf("MSIE 6") != -1) {
		centerTacDisclaimerInterval = setInterval("centerTacDisclaimer()", 10);
	}

	disclaim_is_here = 1;
}

function centerTacDisclaimer() {
	// centrage du bloc d'arrière plan
	document.getElementById('blockTacDisclaimer1').style.display = "block";
	document.getElementById('blockTacDisclaimer1').style.left    = document.body.scrollLeft   + "px";
	document.getElementById('blockTacDisclaimer1').style.top     = document.body.scrollTop    + "px";
	document.getElementById('blockTacDisclaimer1').style.width   = document.body.clientWidth  + "px";
	document.getElementById('blockTacDisclaimer1').style.height  = document.body.clientHeight + "px";
	// centrage du bloc de premier plan
	document.getElementById('blockTacDisclaimer2').style.display = "block";
	document.getElementById('blockTacDisclaimer2').style.left    = document.body.scrollLeft + (document.body.clientWidth  / 2) + "px";
	//document.getElementById('blockTacDisclaimer2').style.top     = document.body.scrollTop  + (document.body.clientHeight / 2) + "px";
	
	document.getElementById('blockTacDisclaimer2').style.marginTop = 0;
	document.getElementById('blockTacDisclaimer2').style.top     = 20 + "px";
}

function hideDisclaimer() {
	// on affiche les select
	ShowSelect();
	if ( centerTacDisclaimerInterval ) { clearInterval(centerTacDisclaimerInterval); }
	// on masque les blocs du diclaimer
	document.getElementById('blockTacDisclaimer1').style.display = "none";
	document.getElementById('blockTacDisclaimer2').style.display = "none";
  	if (dureecook == 2) cre_cook('disclaimer','1','0');
	else cre_cook('disclaimer','1','1');
}

function openTacPopUnder() {
	window.open('http://market2.the-adult-company.com/market/disclaimer/popunder.php?comfrom=20616&cf0=pc&promo=cb&cf1=M59&cf2=0&rebill=1&f5part=&langue=uk&sexe=h&id=&cfsa0=&cfsa1=&mk_leftimg=&mk_site=&cl_theme=146&idmarket=86415&tpr=&ur=aHR0cDovL2QyLmFkdmVydHNlcnZlLmNvbS9hZHZlcnRwcm8vc2VydmxldC92aWV3L3dpbmRvdy91cmwvY2FtcGFpZ24/Y2lkPTI1MSZwaWQ9MCZjdXN0b20xPTIwNjE2LXBjJmN1c3RvbTM9JmN1c3RvbTQ9JmN1c3RvbTU9MDIwMTAmY3VzdG9tNj0xJmN1c3RvbTc9MSZjdXN0b204PTEmY3VzdG9tOT0xJmN1c3RvbTEwPTA=&skn=1&lg=uk&langue=uk&pu=0', '', 'width=600, height=400');
}

function openTacSiteUnder() {
	var TacSiteUnder = window.open('http://d2.advertserve.com/advertpro/servlet/view/window/url/campaign?cid=251&pid=0&custom1=20616-pc&custom3=&custom4=&custom5=02010&custom6=1&custom7=1&custom8=1&custom9=1&custom10=0', '', 'width=' + screen.availWidth + ', height=' + screen.availHeight + ', location=1, status=1, scrollbars=1');
	TacSiteUnder.blur();
	window.focus();
}

function scrollToTop() {
  /* on positionne en haut de page l'affichage de la page de l'affilié */
  window.scrollTo(0, 0);
  scrollToTopTimer = setTimeout("scrollToTop()", 100);
}

if (accepteCookies) {
	// verifie si disclaim existe ou pas
	verifieDisclaim = lit_cook("disclaimer");
	if (verifieDisclaim == "") {
				dureecook = 2;
		document.write(codeTacDisclaimer);
		showDisclaimer();
	}
	else {
		ShowSelect();
		showpop();
	}
}
else {
		document.write(codeTacDisclaimer);
	showDisclaimer();
}
//-->
